package com.huaxiafinance.management.dto.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by huangwencheng on 2017/11/07.
 */
public class GiftDetailsDto {
    @NotNull(message = "id不能为空")
    private Integer id;

    @NotNull(message = "页数不能为空")
    private Integer page;

    @Min(value = 1, message = "分页最小行数为1")
    @Max(value = 50, message = "分页最大行数为50")
    private int rows;

    private Date nowDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public Date getNowDate() {
        return nowDate;
    }

    public void setNowDate(Date nowDate) {
        this.nowDate = nowDate;
    }

    @Override
    public String toString() {
        return "GiftDetailsDto{" +
                "id=" + id +
                ", page=" + page +
                ", rows=" + rows +
                '}';
    }
}
